def subString(s, start, length):
    return s[start:length:]


str = 'abcdefg'
print(subString(str, 1, 2))
print(subString(str, 1, 3))
